<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#panel_0" data-id="0" data-toggle="tab">全部</a></li>
            {foreach $list as $key=>$value }
                <li class=""><a href="#panel_{$value.id}" data-id="{$value.id}" data-toggle="tab">{$value.name}</a></li>
            {/foreach}
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="panel_0">
                <div id="toolbar_0" class="toolbar">
                    {:build_toolbar('refresh')}
                </div>
                <table id="table_0" class="table table-striped table-bordered table-hover" width="100%">
                </table>
            </div>
            {foreach $list as $key=>$value }
                <div class="tab-pane fade active" id="panel_{$value.id}">
                    <div id="toolbar_{$value.id}" class="toolbar">
                        {:build_toolbar('refresh')}
                    </div>
                    <table id="table_{$value.id}" class="table table-striped table-bordered table-hover" width="100%">
                    </table>
                </div>
            {/foreach}
        </div>
    </div>
</div>